package com.kgcx.price.mapper;

import com.kgcx.dbutils.utils.CommonMapper;
import com.kgcx.price.domain.MileageRecord;
import tk.mybatis.mapper.common.BaseMapper;

public interface MileageRecordMapper extends CommonMapper<MileageRecord>
{
    /**
     * selectByCarId 根据车辆id取得最近一条里程相关信息
     *
     * @param mileageRecord 预估价信息类
     * @return PriceCaculationPrice
     * */
    MileageRecord selectByCarId(MileageRecord mileageRecord);

    /**
     * selectByOrderId 根据订单id取得最里程相关信息
     *
     * @param mileageRecord 预估价信息类
     * @return PriceCaculationPrice
     * */
    MileageRecord selectByOrderId(MileageRecord mileageRecord);
}